package com.example.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.entity.Netfollows;
import com.example.entity.Students;
import com.example.entity.StudentsVO;
import com.example.mapper.MyStudentMapper;
import com.example.service.MyStudentService;
@Service
public class MyStudentServiceImpl implements MyStudentService {
	@Autowired
	private MyStudentMapper myStudentMapper;
	@Override
	public List<Students> findMyStudentAll(StudentsVO studentsVO) {
		// TODO Auto-generated method stub
		return myStudentMapper.findMyStudentAll(studentsVO);
	}

	@Override
	public int getCountStudents(StudentsVO studentsVO) {
		// TODO Auto-generated method stub
		return myStudentMapper.getCountStudents(studentsVO);
	}


	@Override
	public int delStudent(int id) {
		// TODO Auto-generated method stub
		return myStudentMapper.delStudent(id);
	}
	/**
	 * 添加跟踪信息
	 */
	@Override
	public int addnetfollows(Netfollows netFollows) {
		// TODO Auto-generated method stub
		return myStudentMapper.addnetfollows(netFollows);
	}
	/**
	 * 自动分配咨询师后修改学生信息
	 */
	@Override
	public int update(Students students) {
		// TODO Auto-generated method stub
		return myStudentMapper.update(students);
	}
	
}
